import Cookies from 'js-cookie'
const AdminRoles = 'AdminRoles'
const TokenKey = 'Token'
const RoleKey = 'administrator'
export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}
export function getAuth() {
  return Cookies.get(AdminRoles)
}
export function setAuth(roles) {
  return Cookies.set(AdminRoles, roles)
}
export function getRole() {
  return Cookies.get(RoleKey)
}
export function setRole(role) {
  return Cookies.set(RoleKey, role)
}
